<?php
require("./Constants.class.php");
require("./world/model/World.class.php");

if (Login::getLogin()->checkUserLoggedIn()) {
	World::init();
} else {
	Login::getLogin()->login("username", "password", 1);	
}

echo count(World::getWorld()->getPlayerList());
$player = new Player(array());

World::getWorld()->registerPlayer($player);
echo count(World::getWorld()->getPlayerList());

World::getWorld()->unRegisterPlayer($player);
echo count(World::getWorld()->getPlayerList());
?>